package common;

import engine.Constants;

public class Log {
	public static void write(String text) {
		System.out.println("> " + text);
	}
	public static void debug(String text) {
		if(Constants.DEBUG_MODE == true) {
			System.out.println(": " + text);
		}
	}
	public static void warning(String text) {
		System.out.println("! " + text);
	}
	public static void error(String text) {
		System.out.println("!!! " + text);
	}
	public static void debug(String text, Object self) {
		if(Constants.DEBUG_MODE == true) {
			System.out.println("[" + self.toString() + "] : " + text);
		}
	}
	public static void stackTrace() {
		StackTraceElement[] stackTrace = new Throwable().getStackTrace();
		for(StackTraceElement s : stackTrace) {
			System.out.println(s.toString());
		}
	}
}
